package com.demo.salary.abstracttransactions;

import com.demo.salary.payrolldomain.Employee;
import com.demo.salary.payrolldomain.PayMethod;

public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction {


    public ChangeMethodTransaction(int empId) {
        super(empId);
    }

    abstract PayMethod getMethod();

    @Override
    public void change(Employee employee) {
        employee.setMethod(getMethod());
    }
}
